# -*- coding: utf-8 -*-
# @Time    : 2022/5/25 9:25
# @Author  : leijiu
# @Email   : 517711635@qq.com
# @File    : user_comment_detail_page.py
# @Software: PyCharm
"""
用户详情页面
"""

from selenium.webdriver.common.by import By
from page.base_page import BasePage

class UserCommentDetali(BasePage):
    # def __init__(self,driver):
    #     self.driver=driver

    #输入回复内容定位器
    ele_responsecommet_locator=(By.NAME,"content")
    ele_responsecommetbtn_locator=(By.NAME,"submit")

    #输入回复内容
    def responsecommet(self):
        self.driver.find_element(*self.ele_responsecommet_locator).clear()
        self.driver.find_element(*self.ele_responsecommet_locator).send_keys("这个很好")
    #点击确定
    def responsecommetbtn(self):
        self.driver.find_element(*self.ele_responsecommetbtn_locator).click()